import request from '@/utils/request'

// 查询长租账单记录列表
export function listRecord(query) {
  return request({
    url: '/longOrder/record/list',
    method: 'get',
    params: query
  })
}

// 查询长租账单记录详细
export function getRecord(billId) {
  return request({
    url: '/longOrder/record/' + billId,
    method: 'get'
  })
}

// 新增长租账单记录
export function addRecord(data) {
  return request({
    url: '/longOrder/record',
    method: 'post',
    data: data
  })
}

// 修改长租账单记录
export function updateRecord(data) {
  return request({
    url: '/longOrder/record',
    method: 'put',
    data: data
  })
}

// 删除长租账单记录
export function delRecord(billId) {
  return request({
    url: '/longOrder/record/' + billId,
    method: 'delete'
  })
}

// 导出长租账单记录
export function exportRecord(query) {
  return request({
    url: '/longOrder/record/export',
    method: 'get',
    params: query
  })
}